package com.ydcycloud.job.dao.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.smart.mvc.dao.hibernate.JdbcDao;
import com.ydcycloud.company.model.Trade;
import com.ydcycloud.job.dao.ProfessionDao;
import com.ydcycloud.job.model.Profession;
import com.ydcycloud.sys.dao.impl.BaseDaoImpl;

@Component("professionDao")
public class ProfessionDaoImpl  extends BaseDaoImpl<Profession, Integer> implements ProfessionDao {

	@Resource
	private JdbcDao baseJdbcDao;

	@Override
	public List<Profession> getProfessionList(Integer size) {
		StringBuffer sql = new StringBuffer();
		List<Object> params = new ArrayList<Object>();
		sql.append("SELECT id,profession FROM t_profession");
		
		System.out.println(sql.toString());
		return findListBySql(Profession.class, sql.toString(), params.toArray());
	}
}
